package com.jojo.jojomall.product.feign;

import com.jojo.common.utils.R;
import com.jojo.jojomall.product.vo.skuHasStockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

//远程调用库存
@FeignClient("jojomall-ware")
public interface WareFeignService {
    @PostMapping("/hasstock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);
}
